package com.atguigu.Spring5.service;

import com.atguigu.Spring5.dao.StudentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @Author xiao hu die
 * @Date 2022/3/30 15:31
 * @Version 1.0
 */
@Service
public class StudentService {
    @Value(value = "陈唯怡")
    private String name;

    public String getName() {
        return name;
    }

    @Autowired
    @Qualifier(value = "StudentDao")
    private StudentDao studentDao;
    public void select2(){
        studentDao.select();
    }
}
